﻿<form name="form" ng-controller="dateValidator">
    <div ng-controller="popupDateTime">
        <span class="k-widget k-datepicker k-header k-input">
            <span class="k-picker-wrap k-state-default">
                <input kendo-date-picker type="text" class="k-input" name="{{name+id}}" ng-init="date=null"
                    ng-blur="date=checkOldMatch(model, date);
                    changeOrderDate();resetDate(name+id, date, id)" k-parse-formats="formatsDate" k-format="formatDate"
                    ng-model="model" k-ng-model="date" />
                <span class="k-select" role="button" unselectable="on"><span class="k-icon k-i-calendar" unselectable="on">select</span></span>
            </span>
        </span>
        <button type="button" class="close" ng-click="date=clearDate();
             model=clearDate();changeOrderDate();resetDate(name+id, date, id)"
            aria-hidden="true">
            &times;
        </button>
    </div>
</form>
